import operationSystem from './operationSystem.js'
import deepClone from "../../uview-ui/libs/function/deepClone"; // operationSystem的key有：frontCashier，dailyEntry，backManagement，analysis，electronic，wx

function handleList(contentName, indexArr) {
    let list = deepClone(operationSystem[contentName])
    list.forEach((item, index) => {
        if (!indexArr.includes(index)) {
            list[index] = '-'
        }
    })
    return list
}

// 运营系统
export const operationData = {
    member: {
        name: '会员版',
        open: 380, // 开通
        renew: 380, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [0, 1, 2, 7, 9, 11, 12, 13]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', []),
            isEmpty: true
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [62, 76, 102, 109, 112, 118, 110, 120, 118, 94, 101, 124, 68]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 9, 10, 14]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    basic: {
        name: '基础版',
        open: 980, // 开通
        renew: 680, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [1, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', []),
            isEmpty: true
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [5, 9, 6, 10, 12, 14, 15, 18, 16, 27, 30, 32, 34, 40, 41, 42, 43, 44, 56, 58, 60, 61, 62, 63, 65, 68, 76, 77, 78, 84, 94, 95, 96, 98, 101, 103, 104, 110, 111, 112, 114, 115, 117, 118, 120, 121, 122, 123, 124]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 1, 4, 5, 8, 9, 14, 18, 19, 20, 21, 22, 25, 26, 31, 34]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    startCreation: {
        name: '初创版',
        open: 580, // 开通
        renew: 580, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [3, 5, 6, 7, 8, 9, 10, 12, 13]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', []),
            isEmpty: true
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [4, 27, 26, 7, 14, 15, 40, 41, 42, 107, 56, 58, 60, 61, 62, 63, 65, 76, 68, 103, 104, 105, 108, 109, 112, 118, 120, 110, 94, 95, 96, 97, 101, 68, 124]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 9, 10, 14, 18, 20, 21]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    haircutStandard: {
        name: '标准版',
        open: 1380, // 开通
        renew: 880, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [1, 3, 5, 6, 8, 9, 10]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]),
            isEmpty: false
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    complex: {
        name: '管理版',
        open: 1680, // 开通
        renew: 980, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [1, 3, 5, 6, 8, 9, 10]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),
            isEmpty: false
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    headquarters: {
        name: '总部管理',
        open: 0, // 开通
        renew: 0, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', []),
            isEmpty: true
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,]),
            isEmpty: false
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [4, 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 25, 57, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0, 1]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [4, 5, 6]),
            isEmpty: false
        },
    },

    beautyStandard: {
        name: '美容标准版',
        open: 1680, // 开通
        renew: 980, // 续费
        frontCashier: {
            title: '前台收银',
            list: handleList('frontCashier', [0, 1, 2, 3, 4, 5, 6, 7]),
            isEmpty: false
        },
        dailyEntry: {
            title: '日常入单',
            list: handleList('dailyEntry', [0, 1]),
            isEmpty: false
        },
        backManagement: {
            title: '后台管理',
            list: handleList('backManagement', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
                52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
                102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116
            ]),
            isEmpty: false
        },
        analysis: {
            title: '分析决策',
            list: handleList('analysis', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34]),
            isEmpty: false
        },
        electronic: {
            title: '电子开单',
            list: handleList('electronic', [0]),
            isEmpty: false
        },
        wx: {
            title: '公众号、小程序',
            list: handleList('wx', [0, 1, 2, 3]),
            isEmpty: false
        },
    },

}

// 移动端
export const mobileData = {
    onlineMall: {
        name: '线上商城',
        open: 1680, // 开通
        renew: 980, // 续费
        contentList: [
            '店铺展示',
            '门店介绍',
            '项目图文介绍',
            '在线预约',
            '顾客消费点评',
            '购买商品，地址填写快递到家',
            '开卡充值',
            '购买项目',
            '拼团秒杀',
            '活动券',
            '自动弹窗优惠券',
            '在线充值',
            '查询余额，次卡，消费记录',
            '积分商城',
            '消费赠券'
        ]
    },
    smallProgram: {
        name: '拼团拓客小程序',
        open: 980, // 开通
        renew: 600, // 续费
        contentList: [
            '可脱离系统自主营销',
            '一键分享',
            '添加项目',
            '添加商品',
            '添加员工',
            '添加疗程套餐',
            '拼团活动',
            '员工分组',
            '连锁分店',
            '团购数据',
            '个人排行榜',
            '分组排行榜',
            '门店排行榜',
            '成交统计',
            '分享统计',
            '销售订单',
            '导出订单',
            '门店统计',
            '资金记录',
            '提现记录',
            '个人成交额',
            '个人分享统计'
        ]
    },
}
